package com.zy.cat.entity.dev;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.RequiredArgsConstructor;

/**
 * 
 * @info 果园任务配置表
 * @author Link
 * @date 2019-10-30 08:56
 */
@Entity
@Table(name = "zy_cat_tree_task_config",
indexes = {
		@Index(name = "typeId", columnList = "type_id"),
		@Index(name = "ctime", columnList = "ctime") })
@Data
@RequiredArgsConstructor
@ApiModel("果园任务配置表")
public class CatDevTreeTaskConfig {
	

	@Id
	@GeneratedValue(strategy= GenerationType.IDENTITY)
	@Column(name = "type_id",columnDefinition = "INT(32) NOT NULL COMMENT '任务类型ID'")
	@ApiModelProperty(value = "任务类型ID", example = "0")
    private int typeId;
	
	@Column(name = "",columnDefinition = "INT(10) DEFAULT '0' COMMENT '肥料数量'")
	@ApiModelProperty(value = "肥料数量", example = "6")
	private int fertilizerNum;
	
	@Column(columnDefinition = "VARCHAR(100)  NOT NULL  COMMENT '任务标题'")
	@ApiModelProperty(value = "新人任务标题", example = "首次复制淘宝商品标题")
	private String taskTitle;
	
	@Column(columnDefinition = "VARCHAR(100)  NOT NULL  COMMENT '任务内容'")
	@ApiModelProperty(value = "新人任务内容", example = "")
	private String taskContent;
	
	@Column(columnDefinition = "int(10)  NOT NULL  COMMENT '任务属性'")
	@ApiModelProperty(value = "任务属性", example = "0")
	private Integer taskAttribute;
	
	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '创建时间'")
	@ApiModelProperty(value = "创建时间", example = "2019-02-22 12:56:56")
	private String ctime="-";
	
	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '最后修改时间'")
	@ApiModelProperty(value = "最后修改时间", example = "2019-02-22 12:56:56")
	private String ltime="-";
	
	@Column(name = "task_num",columnDefinition = "INT(10) DEFAULT '1' COMMENT '任务次数'")
	@ApiModelProperty(value = "完成次数", example = "6")
	private int taskNum;

	@Column(name = "task_pic",columnDefinition = "VARCHAR(200) DEFAULT NULL COMMENT '任务图标'")
	@ApiModelProperty(value = "任务图标", example = "https://")
	private String taskPic;
	
	@Column(name = "task_btn",columnDefinition = "VARCHAR(200) DEFAULT NULL COMMENT '任务按钮'")
	@ApiModelProperty(value = "任务按钮", example = "")
	private String taskBtn;
	
}
